// https://leetcode.cn/problems/number-of-strings-that-appear-as-substrings-in-word/description/
package main
import "strings"
func numOfStrings(patterns []string, word string) int {
    ans := 0
	for _, v := range patterns {
		if strings.Contains(word, v) {
			ans += 1
		}
	}
	return ans
}